# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo03
# Description:
# Author:       98745
# Date:         2019/6/7
#-------------------------------------------------------------------------------

from flask import Flask
from flask import request

app=Flask(__name__)
@app.route('/')
def index():
    msg=request.headers.get('User-Agent')
    return '<h1>浏览器是{}</h1>'.format(msg)

@app.route('/abc')
def abc():
    va=request.args.get('arg')
    return '<h1>arg={}</h1>'.format(va)

if __name__ == '__main__':
    app.run()

